package com.atguigu.schedule.protocol;

public enum ResponseCodeEnum {
    SUCCESS(200, "success"),
    NAME_ERROR(501, "username set error"),
    PWD_ERROR(502, "password set error"),
    NOT_LOGIN_ERROR(503, "please login first"),
    NAME_OCCUPIED_ERROR(509, "username have been occupied"),
    OTHER_ERROR(599, "other error");

    private Integer code;
    private String message;
    private ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
